package com.example.toolproject.demo.service.serviceimpl;

import com.example.toolproject.demo.domain.DataType;
import com.example.toolproject.demo.mapper.DataTypeMapper;
import com.example.toolproject.demo.service.DataTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DataTypeServiceImpl
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-06-19 15:57
 **/
@Service
public class DataTypeServiceImpl implements DataTypeService {

    @Autowired
    private DataTypeMapper dataTypeMapper;

    /**
     * 查询所有数据标题信息
     * @return
     */
    @Override
    public List<DataType> getAllDataType() {
        return dataTypeMapper.getAllDataType();
    }
}
